<extend name="Public/base" />

<block name="style">
<style>
	.page-content{padding:15px 10px;}
	.search_pannl_div .single-col label{width:75px;}
</style>
</block>

<block name="body">
	<!-- 弹窗插件 -->
    <include file="Public:artdialog" />


     <div class="row">
        <div class="col-md-12">
            <div class="block-web">
				<!-- 商品列表 -->
				<form action="{:U('goods_list')}" method="post" onsubmit="return false" id="SearchFrom">
				        <div class="bgmain">
				        	<div class="header">
				  
			                    <h3 class="content-header">选择开团会员</h3>
			                </div>
				        
		                    <div class="block-web" style="margin: 0;padding:10px 20px 0px 0px;">
		                        <div class="porlets-content">
		                            <div class="row" style="margin-left:-45px;">
		                                <div class="col-md-12">
		                                    <div class="search_pannl_div">
		                                        <table class="search_table">
		                                            <tbody>
		                                                <tr>
		                                              <td class="single-col">
																 <label>关键词：</label><input style="width:180px;" type="text" id="keywords" name="keywords" placeholder="输入会员编号/会员名" value="">
		                                                        <button type="button" class="btn btn-success" formtarget="SearchFrom" id="searchBtn" onclick="goSearch('#searchBtn','load_tb_div')"><i class="fa fa-search"></i> 搜索</button>	  
		                                         
		                                                    </td>
		                                                </tr>
		                                            </tbody>
		                                        </table>
		                                    </div>
		                                </div>
		                            </div>
		                        </div>
		                    </div>
			    	 </div>
	
				<div id="load_tb_div" style="padding:10px 0px 30px ;">
				</div>

				<script>
			
				</script>
              	</form>
            </div><!--/porlets-content-->
        </div><!--/block-web-->
    </div><!--/col-md-12-->
    
</block>

<block name="script">
<script type="text/javascript" src="/plugins/laydate/laydate.dev.js"></script>
<script>
/*
 * 根据url加载html到 div_id 的元素里。
 * */
 var url = "{:U('goods_list')}";
 var data = "{$id}";
 var blongtype  = "{$blongtype}";
 var div = "load_tb_div";
 _load_html_byurlgoods(url,div,data);
function _load_html_byurlgoods(url,div_id,data)
{
    //todo  加载图标

    _show_public_loading();
    $.ajax({
        url:url,
        type:"POST",
        dataType:"html",
        data:{id: data,
             blongtype:blongtype
             },
        success:function(data){
            $("#"+div_id).html(data);
        }
        ,complete:function(){
            //隐藏加载图标
            _hide_public_loading();
        }

    });
}
/*$(function(){
  $("#add_edit_id").bind("click",fnadd); 
  function  fnadd(){
   debugger;
    var url="{:U('selection_of_goods')}";
    title="添加特价主题";  
    var mydialog=art.dialog.open(url,{title:title, width:'1200px', height:'80%', opacity: 0.2, id: "add_edit_id",
  	  ok: function () { 
  		    this.close();
  		    fnCreateGoodsList();
  	        return false;
  	    },
  	    okVal:'确定',
  	    cancelVal: '取消',
  	    cancel: function(){this.close();}	
  });  
 }
 

});*/

</script>




</block>

